﻿using System;

class Garden
{
    static void Main()
    {
        ushort tomatoSeeds, cucumberSeeds, potatoSeeds, carrotSeeds, cabbageSeeds, beansSeeds;
        byte tomatoArea, cucumberArea, potatoArea, carrotArea, cabbageArea, beansArea;
        const float tomatoCost=0.5f, cucumberCost=0.4f, potatoCost=0.25f, carrotCost=0.6f, cabbageCost=0.3f, beansCost=0.4f;
        float totalCost;
        int area;

        tomatoSeeds = ushort.Parse(Console.ReadLine());
        tomatoArea = byte.Parse(Console.ReadLine());
        cucumberSeeds = ushort.Parse(Console.ReadLine());
        cucumberArea = byte.Parse(Console.ReadLine());
        potatoSeeds = ushort.Parse(Console.ReadLine());
        potatoArea = byte.Parse(Console.ReadLine());
        carrotSeeds = ushort.Parse(Console.ReadLine());
        carrotArea = byte.Parse(Console.ReadLine());
        cabbageSeeds = ushort.Parse(Console.ReadLine());
        cabbageArea = byte.Parse(Console.ReadLine());
        beansSeeds = ushort.Parse(Console.ReadLine());

        totalCost = (tomatoSeeds * tomatoCost) + (cucumberSeeds * cucumberCost) + (potatoSeeds * potatoCost) + (carrotSeeds * carrotCost) + (cabbageSeeds * cabbageCost) + (beansSeeds * beansCost);
        area = tomatoArea + cucumberArea + potatoArea + carrotArea + cabbageArea;
        Console.WriteLine("Total costs: {0:F2}", totalCost);
        if (area < 250)
        {
            Console.WriteLine("Beans area: {0}",(250-area));
        }
        else if (area == 250)
        {
            Console.WriteLine("No area for beans");
        }
        else
        {
            Console.WriteLine("Insufficient area");
        }
    }
}

